//写法一：malloc法
#include <iostream>
using namespace std;

int main() {

    int n;
    cin >> n;
    
    // write your code here......
    int *arr = (int*)malloc(sizeof(int)*n);
    int i = 0;

    while(i < n){
        arr[i] = n + i;
        cout << arr[i++] << " ";
    }

    free(arr);

    return 0;
}

//方法二：new法
#include <iostream>
using namespace std;

int main() {

    int n;
    cin >> n;
    
    // write your code here......
    int *arr = new int[n];
    int i = 0;

    while(i < n){
        arr[i] = n + i;
        cout << arr[i++] << " ";
    }    
    delete []arr;//数组释放格式

    return 0;
}